<div ng-if="!isAccountLogin">
    <div ng-if="!isIsvLogin" class="sui-form form-horizontal" style="text-align: center;">
        <p>
            <h3>大黄蜂跨境电商系统</h3>
            打开微信，使用扫一扫功能，扫描下面的小程序扫码登录或注册
        </p>
        <img ng-src="{{dataimage}}" width="250" style="border: 2px solid;" />
        <br />
        <!-- <liuyan></liuyan> -->

        <br /> 如果微信扫码无反应，请点击<button class="sui-btn btn-link" ng-click="initData()">刷新小程序码</button>
        <br/> 你也可以使用
        <button class="sui-btn btn-link" ng-click="showAccountLogin()">账号/密码</button>登录
    </div>


    <div ng-if="isIsvLogin" class="sui-form form-horizontal">
        <div class="control-group" style="margin-top: 20px;">
            <label for="isvName" class="control-label">{{"username"|translate}}：</label>
            <div class="controls">
                <input type="text" id="isvName" ng-model="$parent.isvName" placeholder='{{"Name"|translate}}'>
            </div>
        </div>
        <div class="control-group">
            <label for="isvPwd" class="control-label">{{"password"|translate}}：</label>
            <div class="controls">
                <input type="password" id="isvPwd" ng-model="$parent.isvPwd" placeholder='{{"password"|translate}}'>
            </div>
        </div>
        <div class="control-group">
            <label for="iinputPassword" class="control-label"> </label>
            <div class="controls">
                <button class="sui-btn btn-primary" ng-click="isvLogin($parent.isvName,$parent.isvPwd)">登录</button>
            </div>
        </div>
    </div>
</div>
<div ng-if="isAccountLogin" class="sui-form form-horizontal">
    <div class="control-group" style="margin-top: 20px;">
        <label for="inputName" class="control-label">{{"username"|translate}}：</label>
        <div class="controls">
            <input type="text" id="inputName" ng-model="$parent.loginName" placeholder='{{"Name"|translate}}'>
        </div>
    </div>
    <div class="control-group">
        <label for="inputPassword" class="control-label">{{"password"|translate}}：</label>
        <div class="controls">
            <input type="password" id="inputPassword" ng-model="$parent.loginPwd" placeholder='{{"password"|translate}}'>
        </div>
    </div>
    <div class="control-group" ng-show="partner_id_names">
        <label for="inputPassword" class="control-label">{{"选择登录组织"|translate}}：</label>
        <div class="controls">
            <select ng-model="selPartner" ng-change="change(selPartner)" ng-options="value for (key , value) in partner_id_names"> </select>
        </div>
    </div>
    <div class="control-group">
        <label for="inputPassword" class="control-label"> </label>
        <div class="controls">
            <button class="sui-btn btn-primary" ng-click="accountLogin()">登录</button>
            <button class="sui-btn btn-link" ng-click="showAccountLogin()">二维码登录</button>
        </div>
    </div>
</div>